Aliases in <cinttypes> header
Here are some examples of the type aliases defined in <cinttypes> are mentioned below:
- int8_t: A signed integer type that is exactly 8 bits wide.
- int16_t: A signed integer type that is exactly 16 bits wide.
- int32_t: A signed integer type that is exactly 32 bits wide.
- int64_t: A signed integer type that is exactly 64 bits wide.
- uint8_t: An unsigned integer type that is exactly 8 bits wide.
- uint16_t: An unsigned integer type that is exactly 16 bits wide.
- uint32_t: An unsigned integer type that is exactly 32 bits wide.
- uint64_t: An unsigned integer type that is exactly 64 bits wide.
Syntax in <cinttypes>:
#include <cinttypes>
C++ 11 – Header
The header offers type aliases and functions for manipulating integer types with particular sizes and signedness, as a part of the C++11 standard. Its aim is to present a standard group of integer types across diverse platforms and architectures.